﻿Imports System.Web.Services
Imports System.Web.Services.Protocols
Imports System.ComponentModel

' Para permitir que se llame a este servicio web desde un script, usando ASP.NET AJAX, quite la marca de comentario de la siguiente línea.
' <System.Web.Script.Services.ScriptService()> _
<System.Web.Services.WebService(Namespace:="http://tempuri.org/")> _
<System.Web.Services.WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
<ToolboxItem(False)> _
<System.Web.Script.Services.ScriptService()> _
Public Class SlideService1
    Inherits System.Web.Services.WebService

    <WebMethod()> _
    Public Function GetSlides() As AjaxControlToolkit.Slide()
        Dim MySlides(4) As AjaxControlToolkit.Slide
        MySlides(0) = New AjaxControlToolkit.Slide("Galery/1.jpg", "1", "Pollos a la Brasa 1")
        MySlides(1) = New AjaxControlToolkit.Slide("Galery/2.jpg", "2", "Pollos a la Brasa 2")
        MySlides(2) = New AjaxControlToolkit.Slide("Galery/3.jpg", "3", "Pollos a la Brasa 3")
        MySlides(3) = New AjaxControlToolkit.Slide("Galery/4.jpg", "4", "Pollos a la Brasa 4")
        MySlides(4) = New AjaxControlToolkit.Slide("Galery/5.jpg", "5", "Pollos a la Brasa 5")
        Return MySlides
    End Function

End Class